import { HashRouter } from 'react-router-dom'
import { useEffect, useState } from 'react'
// import { Router, useLazy } from '/@/router/index'
import { connect } from 'react-redux'
import { Router ,useLazy} from "@/router/index";
import Tab from '@/components/Tab'

import { getEnableLanguageList } from "@/api/modules/global";

const routeList = [
  {
    path: '/recharge',
    title:'充值',
    element: 'recharge'
  }
]

useLazy(routeList)

const App = () =>{

  async function getlang (){
    const {data} = await  getEnableLanguageList()
  }

  useEffect(()=>{
    getlang()
  },[])

  return (
    <HashRouter>
      <Router />
      <Tab />
    </HashRouter>
  )
}

export default App